package com.fong.spring_cloud_consumer_feign.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.fong.spring_cloud_consumer_feign.service.HelloService;

@RestController
public class HelloController {

	@Autowired
	private HelloService helloService;

	@RequestMapping( "/hello" )
	public String hello( String name ) {
		return helloService.seyHello( name );
	}
}
